export default {
  mounted() {
    this.getList();
  },
  data() {
    return {
      date: [],
      params: {
        query: '',
        word: '',
        addr: '',
        begin: '',
        end: '',
        offset: 0,
        limit: 10
      },
      currentPage: 1,
      total_count: 0,
      list: [],
      pickerOptions: {
        shortcuts: [
          {
            text: '过去7天',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7)
              picker.$emit('pick', [start, end])
            }
          },
          {
            text: '最近过去30天',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30)
              picker.$emit('pick', [start, end])
            }
          },
          {
            text: '最近三个月',
            onClick(picker) {
              const end = new Date()
              const start = new Date()
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90)
              picker.$emit('pick', [start, end])
            }
          }
        ]
      }
    }
  },
}